<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>homework2</title>
</head>
<body>
<h2>表达:</h2>
<div>
    <p th:text="${result}">result</p>
    <p th:text="${17+3}">result</p>
    <p th:text="${1>10000000}">result</p>
    <p th:text="${1<10000000}">result</p>
</div>
<h2>字符:</h2>
<div>
    <p th:text="'cxk'"></p>
    <p th:text="'2+3'"></p>
    <p th:text="'Result:'+(1+1+2)"></p>
    <p th:text="3.1415926"></p>
    <p th:text="3+7"></p>
    <p th:text="false"></p>
    <p th:text="9>10"></p>
    <p th:text="${1000>100}"></p>
    <p th:if="${2>1}">
        正确的
    </p>
    <p th:text="www.bilibili.com"></p>
</div>
<h2>运算:</h2>
<div>
    <p>加法: <span th:text="${a}+${b}"></span> </p>
    <p>减法:<span th:text="${a}-${b}"></span></p>
    <p>乘法:<span th:text="${a}*${b}"></span></p>
    <p>除法:<span th:text="${a}div${b}"></span></p>
    <p>取模:<span th:text="${a}mod${c}"></span></p>
    <p th:if="${a}>${b}">a大于b </p>
    <p th:if="${a}<${b}">a小于b </p>
    <p th:if="${a}==${b}">a等于b </p>
    <p th:if="${a}!=${b}">a不等于b </p>
    <p th:if="${a}> ${b} and ${a} mod ${c}==0">a大于b,并且a是偶数</p>
    <p th:if="${a}> ${b} and ${a} mod ${c}==1">a大于b,并且a是奇数</p>
</div>
</body>
</html>